@import "../../base/fn";

@ntDialogBackgroundColor: #FAFAFC;
@ntDialogLineColor: #D5D5D6;
@ntDialogLinkColor: #3CC51F;
@ntDialogLinkActiveBc: #EEEEEE;

.nt_dialog {
    position: fixed;
    z-index: 5000;
    width: 85%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-color: @ntDialogBackgroundColor;
    text-align: center;
    border-radius: 3px;
    overflow: hidden;
    .nt_dialog_confirm & {
        .nt_dialog_hd {
            padding: 1.2em 20px .5em;
        }
        .nt_dialog_bd {
            text-align: left;
        }
    }
}

.nt_dialog_hd {
    padding: 1.2em 0 .5em;
}

.nt_dialog_title {
    font-weight: 400;
    font-size: 17px;
}

.nt_dialog_bd {
    padding: 0 20px;
    font-size: 15px;
    color: @globalTextColor;
    word-wrap: break-word;
    word-break: break-all;
}

.nt_dialog_ft {
    position: relative;
    line-height: 42px;
    margin-top: 20px;
    font-size: 17px;
    display: flex;
    a {
        display: block;
        flex: 1;
        color: @ntDialogLinkColor;
        text-decoration: none;
        .setTapColor;
        &:active {
            background-color: @ntDialogLinkActiveBc;
        }
    }
    &:after {
        content: " ";
        .setTopLine(@ntDialogLineColor);
    }
    .nt_dialog_confirm & {
        a {
            position: relative;
            &:after {
                content: " ";
                .setLeftLine(@ntDialogLineColor);
            }
            &:first-child {
                &:after {
                    display: none;
                }
            }
        }
    }
}

.nt_btn_dialog {
    &.default {
        color: #353535;
    }
    &.primary {
        color: #0BB20C;
    }
}

@media screen and (min-width: 1024px) {
    .nt_dialog {
        width: 35%;
    }
}
